package com.hamizhong.iflowers.utils;

public class MyConstants {

	//JSON 返回结果
	public static final int AJAX_SUCCESS = 0;
	public static final int AJAX_FAILED_ALERT = 1;
	public static final int AJAX_FAILED_REDIRECT = 2;
	public static final int AJAX_FAILED_LOGIN_ADMIN = 998;
	public static final int AJAX_FAILED_LOGIN = 999;
	
	//用户重置密码值
	public static final String IFLOWERS_RESET_USER_PASSWORD_VALUE = "111111";
	
	//登录用户令牌
	public static final String IFLOWERS_LOGIN_USER_VO = "iflowers_login_user_vo";
	public static final String IFLOWERS_LOGIN_ADMIN_VO = "iflowers_login_admin_vo";
	public static final String IFLOWERS_LOGIN_USER_COOKIE_NAME = "iflowers_login_user_cookie_name";
	
	//登录前请求路径
	public static final String IFLOWERS_LOGIN_LAST_REQUEST_URI = "iflowers_login_last_reqeust_uri";
	public static final String IFLOWERS_LOGIN_LAST_REQUEST_URI_VALID_FLAG = "iflowers_login_last_reqeust_uri_flag";
	public static final String IFLOWERS_LOGIN_LAST_REQUEST_URL_VALID_NO = "NO";
	public static final String IFLOWERS_LOGIN_LAST_REQUEST_URI_VALID_YES = "YES";
	public static final String IFLOWERS_LOGIN_LAST_REQUEST_URI_VALID_OK = "OK";
	
	//分页
	public static final int PAGE_SIZE_COMMON_ADMIN = 3;		//管理端后台一般分页大小
	public static final int PAGE_SIZE_COMMON_CLIENT = 20;	//客户端前台一般分页大小
	
	//findAll的大小
	public static final int SIZE_OF_COMMON_FINDALL = 100;	//查询全部的一般限制大小
	public static final int SIZE_OF_MIDDLE_FINDALL = 500;	//查询全部的中等限制大小
	public static final int SIZE_OF_LARGE_FINDALL = 1000;	//查询全部的大量限制大小
	
	//管理端后台订单分页
	public static final int PAGE_SIZE_COMMON_CLIENT_ORDERS = 100;//客户端订单分页大小
	public static final int PAGE_SIZE_COMMON_ADMIN_ORDERS = 3;	//管理端后台订单分页大小
	
}
